import { defineStore } from "pinia";
import { Addacrt } from '@/api/articl'

//创建小仓库
const artstore = defineStore('Artic', {
    state: () => {
        return {

        }
    },
    //异步方法
    actions: {
        //注册文章
        async upart(data: any) {
            let result = await Addacrt(data)
            console.log(result)
        }

    }

})
export default artstore